#ifndef BOOKMARK_EDITOR_H
#define BOOKMARK_EDITOR_H

typedef struct BookmarkEditor BookmarkEditor;

struct BookmarkEditor {
    GtkWindow *window;

    GtkTreeView *treeview;
    GtkTreeStore *store;
    GtkTreeSelection  *selection;
    GNode             *selected_node;

    GtkToolButton     *delete_button;
    GtkToggleButton   *add_button;
    GtkToolbar        *toolbar;

    GtkMenu   *add_menu;

    GtkEntry  *name_entry;
    GtkEntry  *host_entry;
    GtkEntry  *user_entry;
    GtkEntry  *passwd_entry;
    GtkEntry  *port_entry;
    GtkComboBox *protocol_combo;

    GtkButton *connect_button;
    GtkButton *save_button;

    int changed;
    int selected_node_content_changed;
};

void show_bookmark_editor (GtkMenuItem *item, gpointer data);

#endif
